<template>
    <div>
        <button class="iconfont icon-sousuo" @click='goSearch'>搜索</button>
    </div>
</template>

<script>
export default {
    data() {
        return {

        };
    },
    methods: {
        //封装一个搜索事件
        goSearch(){
            console.log('搜索中~~~~~')
        }
    },
};
</script>

<style  scoped>

</style>
